<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=no, width=device-width">
<title>提示信息</title>
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<style>
 body{margin:0;padding:0;background-color:#ffffff;height:100%;color:#232323;}
#error{display:block;width:500px;background-color:#fff;padding:30px;border-radius:3px 3px 0 0;position:fixed;left:0;top:-50px;right:0;bottom:0;margin:auto;height:330px;border-bottom:4px #0e6eb8 solid;box-shadow:0 0 20px 0 rgba(0,0,0,.15);box-sizing:border-box;text-align:center;}
.icon{margin:10px auto 15px;}
.title{font-size:20px;margin-bottom:10px;}
.msg{font-size:14px;color:#888;}
.wait{margin:25px auto 0;padding:10px 0;width:220px;font-size:14px;text-align:center;background-color:#dedede;border-radius:3px;}
.wait a{text-decoration:none;color:#ffffff;}
@media (max-width:480px){
#error{width:100%;background-color:transparent;box-shadow:none;height:auto;top:18vh;border:none;}
.wait{position:fixed;left:0;right:0;bottom:10vh;}
}
.status-ico {margin:20px auto;width:73px;height:76px;display:block;background:url(/common/images/ico_right_wrong.png) no-repeat}
.status-ico-ok {background-position:0 0}
.status-ico-error {background-position:-97px 0}
</style>
</head>
<body>
<div id="error">
{switch name="$code"}
{case value="1"}
<div class="icon"><div class="status-ico status-ico-ok"></div></div>
<div class="title">信息提示</div>
<div class="msg">{$msg}</div>
{/case}
{case value="0"}
<div class="icon"><div class="status-ico status-ico-error"></div></div>
<div class="title">信息提示</div>
<div class="msg">{$msg}</div>
{/case}
{/switch}
{if $url}
<div class="wait"><a id="href" href="{$url}">等待 <span id="wait">{$wait}</span> 秒后自动跳转</a></div>
{/if}        
</div>
{if $url}
<script>
    (function(){
        var wait = document.getElementById('wait'),
            href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
                if(time <= 0) {
                    location.href = href;
                    clearInterval(interval);
                }
            }, 1000);
    })();
</script>
{/if}
</body>
</html>